
import java.io.IOException;
import javax.microedition.lcdui.*;
public class SetDisplay {
    private static Display display; 
    public static ChatWith CHATWITH;
    public static Search SEARCH;
    public static FirstCanvas FRIENDSLIST;
    public static Register REGISTER;
    public static Login SIGNIN;
    public static Error ERROR;
    public static ChatRoom CHATROOM;
    public static MainCanvas MAINCANVAS;
    
    

    public SetDisplay(){
    }
    public static void LoadDisplay(Display display) throws IOException {
        SetDisplay.display = display;
        CHATWITH = new ChatWith();
        SEARCH = new Search();
        FRIENDSLIST = new FirstCanvas();
        REGISTER = new Register();
        SIGNIN = new Login();
        ERROR = new Error();
        CHATROOM = new ChatRoom();
        MAINCANVAS = new MainCanvas();
        
        
    }
    public static void setCurrent(Canvas view){
        display.setCurrent(view);
    }
    public static void setCurrent(Form view){
        display.setCurrent(view);
        
    }
}